package com.tt.fashionWebSite.dto;

import java.io.Serializable;
import java.util.Date;

public class ChiTietKhuyenMaiFullDto implements Serializable {
   private String maCTKM;
   private KhuyenMaiDto khuyenMai;
   private String maCTSP;
   private Float phanTram;

   public ChiTietKhuyenMaiFullDto() {}

   public ChiTietKhuyenMaiFullDto (Object[] chiTietKMInfo) {
      this.khuyenMai = new KhuyenMaiDto();
      if (chiTietKMInfo[0] != null) {
         this.khuyenMai.setNgayBD((Date) chiTietKMInfo[0]);
      }
      if (chiTietKMInfo[1] != null) {
         this.khuyenMai.setNgayKT((Date) chiTietKMInfo[1]);
      }

      if (chiTietKMInfo[2] != null) {
         this.phanTram = (Float) chiTietKMInfo[2];
      }
   }

   public String getMaCTKM() {
      return maCTKM;
   }

   public void setMaCTKM(String maCTKM) {
      this.maCTKM = maCTKM;
   }

   public KhuyenMaiDto getKhuyenMai() {
      return khuyenMai;
   }

   public void setKhuyenMai(KhuyenMaiDto khuyenMai) {
      this.khuyenMai = khuyenMai;
   }

   public Float getPhanTram() {
      return phanTram;
   }

   public void setPhanTram(Float phanTram) {
      this.phanTram = phanTram;
   }

   public String getMaCTSP() {
      return maCTSP;
   }

   public void setMaCTSP(String maCTSP) {
      this.maCTSP = maCTSP;
   }
}
